#include <iostream>
#include <memory>
#include "Connection.hpp"
#include "MQHBrokerServer.hpp"
#include "fmtlog/fmtlog.h"

class Init
{
    public:
        Init()
        {
            fmtlog::setLogLevel(fmtlog::DBG);
            fmtlog::setHeaderPattern("{s} \t| {t} \t| {l} \t| {YmdHMS} \t| {g} \t| \n\t:");
            fmtlog::startPollingThread(12);
        }
};
int main()
{
    Init _____DONT_USE_ME__ONLY_INIT_LOG_____;
    MY_MQ::Server svr(8888,"./svr");
    svr.start();
    return 0;
}